import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import Enjoy from '@/components/enjoy'
import Sell from '@/components/sell'
import Community from '@/components/community'
import Article from '@/components/article'
import List_article from '@/components/list_article'
import Article_all from '@/components/article_all'
import Carts from '@/components/carts'




Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/enjoy',
      name: 'Enjoy',
      component: Enjoy
    },
    {
      path: '/sell',
      name: 'Sell',
      component: Sell
    },
    {
      path: '/community',
      name: 'Community',
      component: Community
    },
    {
      path: '/article',
      name: 'Article',
      component: Article
    },
    {
      path: '/list_article/:id',
      name: 'List_article',
      component: List_article
    },
    {
      path: '/article_all/:id',
      name: 'Article_all',
      component: Article_all
    },
    {
      path: '/carts/:id',
      name: 'Carts',
      component: Carts
    },

  ]
})
